SRC += pg.c
SRC += daemon_simple.c daemon_syslog.c
SRC += 2-3.c

# 将SRC中的.c去掉，就是程序的名字
BIN=$(SRC:%.c=%)

all: $(BIN)

$(BIN):%:%.c
	gcc $^ -o $@

clean:
	rm $(BIN)